<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/view/main/stylesheet.jsp"%>
<link rel="stylesheet" type="text/css" href="${baseurl}/styles/frameword/css/list.css" />
<script src="${baseurl}/styles/frameword/js/list.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">

	var statejson = <wb:html wbCode="pro-advertising-state" type="json" name="" />
	$(function() {
		var url = "/pro-owner/order/";
		var columns = [
				{
					field : 'orderName',
					title : '广告名称'
				},
				{
					field : 'orderNum',
					title : '推广数量'
				},
				{
					field : 'startDate',
					title : '开始日期',
					formatter : function(value, row, index) {
						return format(new Date(value), 'yyyy-MM-dd');
					}
				},
				{
					field : 'stopDate',
					title : '结束日期',
					formatter : function(value, row, index) {
						return format(new Date(value), 'yyyy-MM-dd');
					}
				},
				{
					field : 'orderAmount',
					title : '广告费用',
					formatter : function(value, row, index) {
						return value/100;
					}
				},
				{
					field : 'state',
					title : '发布状态',
					formatter : function(value, row, index) {
						return statejson[value];
					}
				},
				{
					field : 'userName',
					title : '广告主'
				},
				{
					field : 'belongCity',
					title : '归属城市'
				}
				];
		initListDefault(url, columns)
	})
</script>
</head>
<body class="container-fluid">
	<form class="bs-example bs-example-form" role="form" id="form1">
		<table class="table noline">
			<tbody>
				<tr>
					<td>
						<div class="input-group">
							<span class="input-group-addon explain">广告名称</span> <input type="text" name="orderName" class="form-control">
						</div>
					</td>
					<td>
						<div class="input-group">
							<span class="input-group-addon explain">用户名</span> <input type="text" name="userName" class="form-control">
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="input-group">
							<span class="input-group-addon explain">归属城市</span>
							<wb:html wbCode="pro-city" name="belongCity" nullvalue="true" type="select" />
						</div>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: right;">
						<div class="btn-group">
							<button type="button" class="btn btn-info" id="search-button">
								<i class="glyphicon glyphicon-search"></i> 搜索
							</button>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<table id="table1">
	</table>
</body>

</html>